<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<meta charset="utf-8">
    <title> Add Vendor</title>
<?php echo link_tag(base_url().'skin.css'); ?>
<script type="text/javascript" src="<?php echo base_url(); ?>js/timeFormat.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/1.js"></script>
<script type="text/javascript" src="../js/1.js"></script>
<script src="<?php echo base_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
 var BaseURL='<?php echo base_url(); ?>';
function redirect(location){
	
	window.location.href= location;
}

</script>

<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link href="skin.css" rel="stylesheet" type="text/css" />
</head>

<?php
//echo $_SESSION['administrator_log']."============";
if(!isset($_SESSION['administrator_log']))
{
		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";
}
else
{
?>
<body >

	<div class="BodyCover">
	
 		<div class="ParentContent">
	        <?php require("admin_menu.php"); ?>
			<div class="MenuTab">
    			<div class="MenuBelow"><img src="<?php echo base_url();?>images/below-menu.gif"></div>        
             </div>

			<br /><br />	
			<div class="module-index1">
		  		<div align="right"><a href="<?php echo base_url()?>admin/logout" style="color:#FF0000;">logout</a></div><br/>
  	                <p class=""><?php if (isset($recordflag)) {echo $recordflag;}?><p>
			   <h1>Add Driver / Vendor </h1>
                 <form action="<?php echo base_url()?>vendor/p_add_vendor" method="post">
                <label>Priority_code:</label><input name="txtpriority_code" /> <br />
                <label>Company Name:</label> <input name="txtcompany_name" /> <br />
                <label>Nick Name:</label><input name="txtn_name" /> <br />
                <label>First Name:</label><input name="txtf_name" /><br />
                <label>Last Name:</label><input name="txtl_name" /><br />
                <label>Mobile Number:</label><input name="txtcell_phone_num" /> <br />
                <label>Home Number:</label><input name="txthome_phone_num" /> <br />
                <label>Office Number:</label><input name="txtoffice_phone_num" /> <br />
                <label>Email Address:</label><input name="txtemail_add" /><br />
                <label>Trailer Number:</label><input name="txttrailer_num" /> <br />
                <label>Truck Number:</label><input name="txttruck_num" /> <br />
                <label>MC Number:</label><input name="txtmc_num" /> <br />
                <label>Comment Box:</label><textarea name="txtcomment_box" ></textarea> <br /> 
               			<input type="submit"  value="Save" name="cmdsave">
                                
				<input type="button"  value="Cancel" onclick="redirect(BaseURL+'vendor')" name="cmdcancel">
				</form>
                
   	        
    		<br>

            <div class="BodyContent">
            </div>	
			    		
		    <div class="Footer1">	
                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>
                 <a href="http://webmartis.com"> <img src="http://localhost/wodocontacts/images/wmlink.png"></a>
                 
                </div>                
            </div> <!---end of Footer1 ---->        
            
		</div><!---end of ParentContent ---->
    </div> <!---end of BodyCover ---->
</body>
<?php } ?>
</html>

